package com.panshi.mapper;

import com.panshi.api.bean.AnswerHDBean;
import com.panshi.api.util.PageSizeVO;
import com.panshi.pojo.AnswerHDVO;
import io.swagger.annotations.Api;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author XiaoWangYa
 * @version 1.0
 * @date 2020/8/9 0009 下午 9:23
 */
@Mapper
@Repository
@Api("回答Mapper层")
public interface AnswerHDMapper {
    // 新增回答数据
    void addAnswerHDInfo (AnswerHDBean answerHDBean);

    // 删除回答数据
    void deleteAnswerHDInfo (@Param("id") int id);

    // 查询指定问答下回答 and 指定用户回答数据
    List<AnswerHDVO> queryAssignHDQuestionAnswerInfo (PageSizeVO pageSizeHDBean);

    // 修改回答
    void updateAnswerHDInfo (AnswerHDBean answerHDBean);
}
